write java program to check number is Triangular or not​